<%@ include file="../shared/standardDirectives.jspf" %>
<div class="demo" id="tabs-3">
	<table border="1">
		<thead>
			<tr>
				<th>Id</th>
				<th>Name</th>
				<th>Code</th>
				<th>Description</th>
				<th>Action</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="node" items="${manageNodesForm.nodes}" varStatus="status">
				<tr>
					<td><c:out value="${node.id}"></c:out> </td>
					<td><c:out value="${node.name}"></c:out> </td>
					<td><c:out value="${node.code}"></c:out> </td>
					<td><c:out value="${node.description}"></c:out> </td>
					<td>
						<table>
							<tr>
								<td><html:link action="/node/edit.do" paramId="id" paramName="node" paramProperty="id">Edit</html:link> </td>
								<td><html:link action="/node/delete.do" paramId="id" paramName="node" paramProperty="id">Delete</html:link> </td>
							</tr>
						</table>
					</td>
				</tr>
			</c:forEach>
		</tbody>
		<tfoot>
			<tr>
				<td colspan="2" align="right">
					<form action="/node/add.do"> 
						<input type="submit" value="Add a Node">
					</form>
				</td>
				<td colspan="1" align="right">
					<form action="/node/reloadCache.do"> 
						<input type="submit" value="Clear Node Cache">
					</form>
				</td>
				<td colspan="1" align="right">
					<form action="/node/deleteAll.do"> 
						<input type="submit" value="Delete All">
					</form>
				</td>
				<td colspan="1" align="right">
					<form action="/nodes/file/upload.do"> 
						<input type="submit" value="Upload Nodes File">
					</form>
				</td>
			</tr>
		</tfoot>
	</table>
	
</div>
